<?php

    class PriceManager 
    {
        /**
         *
         * @param type $priceType
         * @return array An associative array of arrays of PriceInfo objects 
         *  in the form array( 'ispro' => array( 1 => ..., 2 => ... ), ... )
         */
        public function GetProductsPrices( $priceType )
        {
            return iSpringServices::GetProductsPrices( $priceType );
        }
        
        /**
         *
         * @param type $product
         * @param type $priceType
         * @param type $coupons
         * @return array An associative array of PriceInfo objects 
         *  in the form array( 1 => ..., 2 => ... )
         */
        public function GetProductPrices( $product, $priceType, $coupons = array() )
        {
            return iSpringServices::GetProductPrices( $product, $priceType, $coupons );
        }
        
        /**
         * @return string Price for Udutu users
         */
        public function GetPriceForUsersUdutu()
        {
        	 $udutuPriceArr = $this->GetProductPrices( Product::IS_SUITE, PriceType::RETAIL, array( 0 => 'UDUTU-GURU' ) );
        	 $udutuPriceObj = $udutuPriceArr[1];
        	 return $udutuPriceObj->unitPrice;
        }
    }

?>
